<html>

<head>
<link rel="stylesheet" type="text/css" href="/incofarming/View/css/mainpage.css" />
<link href="/incofarming/View/css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<div id="container">
	<div id="header">
		<div id="logo">
			<p>&nbsp;</p>
			<p>INCOFARMING </p>
        </div>
       	<div>
        	<p align="right">
            	<a href="...">logout</a>
           	</p>
       	</div>
	</div>
	<div class="row-fluid">
    	<div id="cari" class="span4">
        	<h3>Pencarian Koperasi</h3>
        </div>
        <div class="row-fluid">
    		<div id="mankop" class="span8">
        		<h3>Manajemen Koperasi</h3>
        		<p align="right"><a href="register_view.php">+Tambah Koperasi</a></p>
				<?php
                include("config.php");
                $sql = "select * from koperasi;";
                $records = mysql_query($sql); 
                while($rows = mysql_fetch_array($records)){
				echo "<div class='row-fluid'>";	
                echo "<div class='span4'>
                        <img src='img/gambar.jpg'' alt='' width='260' height='180' /> 
                      </div>";
                echo "<div class='span8'>
                        Nama Koperasi : " . $rows['NAMAKOPERASI'] . "<br />
                        Nomor Telepon : " . $rows['NOTELP'] . "<br />
                        Nomor Fax : " . $rows['NOFAX'] . "<br />
                        Tanggal Pendirian : " . $rows['TGLBERDIRI'] . "<br />
                        Informasi Tambahan : " . $rows['INFORMASI'] . "<br />
                        <p align='right'><a class='btn btn-danger' href='..'>Hapus Koperasi</a></p>
                      </div>";
				echo  "</div>";	  
                }
                ?> 
                <h3>Manajemen Artikel</h3>
                <p align="right"><a href="tulisartikel_view.php">+Tambah Artikel</a></p>
            	<?php
                include("config.php");
                $sql = "select * from artikel;";
                $records = mysql_query($sql); 
                while($rows = mysql_fetch_array($records)){
				echo" " . $rows['JUDULARTIKEL'] . "<br />
                        <p align='right'><a href='..'>Ubah</a> <a href='..'>Hapus</a></p>";
                }
                ?> 
        	</div>
        </div>
	</div>
</div>

<script src="/incofaming/Views/js/jquery-latest.js"></script>
<script src="/incofaming/Views/js/bootstrap.min.js"></script>
<script src="/incofaming/Views/js/jquery.js"></script>

	
</body>
</html>